<template>
  <div class="bottom" v-on:mouseover="mouseOver" v-on:mouseleave="mouseLeave" v-on:mousemove="mouseMove">
    <div v-show="see">{{ location }}</div>
  </div>
</template>

<script>
  export default {
    name: "TestMouse",
    data() {
      return {
        see: false,
        location: null
      }
    },
    methods: {
      mouseMove(e) {
        this.location = `${e.clientX}, ${e.clientY}`
      },
      mouseOver(e) {
        this.see = true
      },
      mouseLeave(e) {
        this.see = false
      }
    }
  }
</script>

<style scoped>
  .bottom {
    width: 500px;
    height: 300px;
    background-color: aquamarine;
  }
</style>
